package com.jyw.flowable.service;

import com.jyw.common.core.page.TableDataInfo;
import com.jyw.flowable.domain.dto.WfDeployPageDto;
import com.jyw.flowable.domain.dto.WfPublishPageDto;
import com.jyw.flowable.domain.vo.WfDeployVo;

/**
 * @author Created by ZhangCheng on 2023/11/14
 */
public interface IWfDeployService {

    /**
     * 参数查询流程部署
     *
     * @param wfDeployPageDto
     * @return
     */
    TableDataInfo<WfDeployVo> list(WfDeployPageDto wfDeployPageDto);

    /**
     * 查询版本历史
     *
     * @param wfPublishPageDto
     * @return
     */
    TableDataInfo<WfDeployVo> queryPublishList(WfPublishPageDto wfPublishPageDto);

    /**
     * 查看流程图
     *
     * @param definitionId
     * @return
     */
    String queryBpmnXmlById(String definitionId);

    /**
     * 删除流程部署
     *
     * @param ids
     */
    void deleteByIds(String[] ids);
}
